package com.akkainaction.helloactor.life;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.akkainaction.helloactor.life.actor.WatchActor2;

public class TestWatchActor2 {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys");
        ActorRef watchActor = system.actorOf(Props.create(WatchActor2.class), "watchActor");
        watchActor.tell("stopWorker", ActorRef.noSender());
    }
}
